//
//  QJBaseTableViewCell.m
//  QJWork
//
//  Created by 高中雷 on 15/5/31.
//  Copyright (c) 2015年 高中雷. All rights reserved.
//

#import "QJBaseTableViewCell.h"

@implementation QJBaseTableViewCell

-(id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if(self ){
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        self.backgroundColor = [UIColor clearColor];
    }
    return self;
}
- (void)awakeFromNib {
    // Initialization code
}

//-(UIView *)cellView{
//    if(_cellView){
//        _cellView = [[UIView alloc]initWithFrame:self.frame];
//        [_cellView setBackgroundColor:[UIColor yellowColor]];
//        _cellView.userInteractionEnabled = YES;
//        [self.contentView addSubview:_cellView];
//    }
//    return self;
//}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}
-(void)LoadViewFromObject:(id)obj{
    self.curObject = obj;
}

-(void)goActionWithName:(NSString*)strName withSender:(id)sender{
    if (self.delegate && [self.delegate respondsToSelector:@selector(goActionWithName:withObject:withSender:)])
    {
        [self.delegate goActionWithName:strName withObject:self.curObject withSender:sender];
    }
}

-(void)goActionWithName:(NSString*)strName withObject:(id)obj withSender:(id)sender {
    if (self.delegate && [self.delegate respondsToSelector:@selector(goActionWithName:withObject:withSender:)])
    {
        [self.delegate goActionWithName:strName withObject:obj withSender:sender];
    }
}







@end
